package com.jerei.store.mapper;

import com.jerei.store.entity.Collect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CollectMapper {



    Integer insertC(Collect collect);

    Collect selectByPid(Integer pid);

    List<Collect> selectByUid(@Param("uid") Integer uid, @Param("num") Integer num);

    Integer selectNumByUid(Integer uid);


    Integer deleteByPid(@Param("pid") Integer pid,@Param("uid") Integer uid);

}
